﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>   
<title>东方易云后台管理系统</title>
<style>
body { background: #f5f5f5 ;}
</style>
<script>
function addProperty(){
	var errorMsg = "";
	errorMsg += sl_check($("#fcName")[0], "名称", 30, 1);
	errorMsg += sl_check($("#fcCode")[0], "编号", 20, 1);
	
	if(errorMsg != ""){
		alert(errorMsg);
	}else{
		$('#addForm').submit();
	}
}
function cancel(){
	$("#addForm")[0].action="transProperty";
	$("#addForm").submit();
}

</script>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
</head>
<body>
<form method="post" action="transPropertyAddSubmit" id="addForm">
<input type="hidden" name="pageNo" value="<c:out value='${pageNo }' />"/>
<input type="hidden" name="fcNameSelect" value="<c:out value='${fcNameSelect }' />"/>
<input type="hidden" name="fcCodeSelect" value="<c:out value='${fcCodeSelect}' />"/>
<input type="hidden" name="fiCatagorySelect" value="<c:out value='${fiCatagorySelect }' />"/>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <!-- Page Head -->
    <div id="page-title">
    <h3>新建参数</h3></div>
    <div class="pgline"></div>
    <div class="notification querytj png_bg">
      <div>
       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tbody>
        <tr>
          <td width="32%" align="right"  height="35">名称：</td>
          <td width="68%" align="left"><input type="text" id="fcName" name="fcName"  class="input2" /></td>
        </tr>
                <tr>
          <td align="right" height="35">类型：</td>
          <td>   	
          	<select name="id.fiCatagory" class="select1" >
               	<c:forEach var="map" items="${TRANS_PROPERTY_FICATAGORY_MAP}">
            		<option value="<c:out value='${map.key }'></c:out>"><c:out value='${map.value }'></c:out></option>
          		</c:forEach>
             </select> 
           </td>
        </tr>
        
        
        <tr>
          <td align="right"  height="35">编号：</td>
          <td align="left">
		  
		  <input type="text" id="fcCode" name="id.fcCode"  class="input2" />
		  </td>
        </tr>

		</tbody>
		 <tfoot>
        <tr>
          <td>&nbsp;</td>
          <td  height="35" ><a class="button" href="javascript:void(0);" onclick="addProperty();">保存</a>&nbsp;&nbsp;<a class="button" href="javascript:void(0)" onclick="cancel()"> 取消</a></td>
        </tr>
</tfoot>
      </table>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <!-- End #main-content -->
</div>
</form>
</body>
</html>
